]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
background: when updating image remove old one from cache
authorRay Strode <rstrode@redhat.com>
Thu, 4 Apr 2013 20:13:07 +0000 (16:13 -0400)
committerRay Strode <rstrode@redhat.com>
Sat, 6 Apr 2013 13:44:51 +0000 (09:44 -0400)
We're removing the new content from the cache instead of the
old content.

This commit fixes that.

https://bugzilla.gnome.org/show_bug.cgi?id=697395

js/ui/background.js

index 4994c05a3518d5bd0e67da3638946c38a278e988..2dbde4adecf322b26b6c96ec1fc0cb846eb4d5d1 100644 (file)
@@ -426,7 +426,7 @@ const Background = new Lang.Class({
         content.brightness = this._brightness;
         content.vignette_sharpness = this._vignetteSharpness;
 
-        this._cache.removeImageContent(content);
+        this._cache.removeImageContent(this._images[index].content);
         this._images[index].content = content;
         this._watchCacheFile(filename);
     },